#ifndef ExampleFormH
#define ExampleFormH

#include "FreeTab.h"  

class ExampleToolbar : public WinToolbar
{
public:
	WinEdit		mToolEdit;
	WinComboBox	mComboBox;
	WinText		mText;
public:
	void AdjustChildren();
protected:
	rewrite void OnCreate();
	void OnText(WinText* text);
};

class AboutForm : public WinWindow
{
public:
	WinText			mFreeCL;
	WinButton		mButton;
protected:
	rewrite void OnCreate();
protected:
	void OnText(WinText* text);
	void OnButton(WinButton* button);
};

class ExampleForm : public WinWindow
{
public:		
	WinMenu			mMenu;
	WinRebar		mRebar;    
	WinImageList	mImageList;	
	OpenDialog		mOpenDialog;
	BrowseDialog	mBrowseDialog;
	WinToolbar		mMenubar;
	ExampleToolbar	mToolbar;
	WinFrame		mFrame;
	FreeTab			mFlatTab;
	WinStatusBar	mStatusBar;
	AboutForm		mAboutForm;
protected:
	rewrite void OnCreate();
protected:
	void OnMenuSubMeasure(WinMenu* root, WinMenu* sub, uint& width, uint& height);
	void OnMenuItemMeasure(WinMenu* root, MenuItem* item, uint& width, uint& height);  
	void OnSelectMenuItem(WinMenu* root, MenuItem* item, const MenuItemSelectData& data);
	void OnSelectSubMenu(WinMenu* root, WinMenu* subMenu, const MenuItemSelectData& data);
	void OnMenuItemClick(WinMenu* root, MenuItem* item);
};

#endif
